home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / GE_VSRC.ZIP / CUBE.INC < prev    next >
Text File  |  1995-04-15  |  1KB  |  35 lines

  1. ; All the data for a cube.
  2.  
  3. PTS_PER_PLANE equ 4                   ;# Points that define a plane (-1)
  4. NUM_PLANES equ 6                      ;# of planes we got.
  5. NUM_PTS equ 8                         ;total # of points
  6. PLANE_LENGTH equ 2*(PTS_PER_PLANE+1)  ;length of tha plane in bytes.
  7.  
  8. ;XYZ coords of my object - a cube that is 5x5x5 units.
  9.  
  10. XYZPointList dd -50000h,-50000h,-50000h
  11.              dd -50000h, 50000h,-50000h
  12.              dd  50000h, 50000h,-50000h
  13.              dd  50000h,-50000h,-50000h
  14.              dd  50000h, 50000h, 50000h
  15.              dd  50000h,-50000h, 50000h
  16.              dd -50000h,-50000h, 50000h
  17.              dd -50000h, 50000h, 50000h
  18.  
  19. ;Normal vectors to the planes (In order!)
  20.  
  21. NormalList   dd  00000h, 00000h, -10000h    
  22.              dd  -10000h, 00000h, 00000h
  23.              dd  00000h, 00000h,  10000h
  24.              dd  00000h, -10000h, 00000h
  25.              dd  10000h, 00000h,  00000h
  26.              dd  00000h, 10000h,  00000h
  27.  
  28. plane1 dw 1,0,3,2,1                   ;Pointlist indexes.
  29. plane2 dw 0,6,7,1,0                   
  30. plane3 dw 6,5,4,7,6
  31. plane4 dw 0,6,5,3,0
  32. plane5 dw 2,3,5,4,2
  33. plane6 dw 1,7,4,2,1
  34.  
  35.